<%# encoding: utf-8%>
$(function() {
    if ($('body').hasClass('pools')) {
        $('#pools-menu-link').addClass('menu-current');
        poolsTable_Settings = {
            'bAutoWidth':      false,
            'bLengthChange':   false,
            'bStateSave':      true,
            'oLanguage':       dataTables_lang,
            'sPaginationType': 'full_numbers',
            'aoColumnDefs':    [{'sType': 'string', 'aTargets': [0]}]
        };
        poolTable = $('#pool-table').dataTable(poolsTable_Settings);

        resTable_Settings = {
            'bAutoWidth':      false,
            'bLengthChange':   false,
            'bStateSave':      true,
            'oLanguage':       dataTables_lang,
            'sPaginationType': 'full_numbers',
            'aoColumnDefs':    [{'sType': 'string', 'aTargets': [0,1]}]
        };

        dea_infoTable = $('#res-table').dataTable(resTable_Settings);

        dea_topoTable_Settings = {
            'bAutoWidth':     false,
            'bLengthChange':   false,
            'bStateSave':      true,
            'oLanguage':       dataTables_lang,
            'sPaginationType': 'full_numbers',
            'aoColumnDefs':    [{'sType': 'string', 'aTargets': [0,1]}]
        };
        dea_topoTable = $('#dea-topo-table').dataTable(dea_topoTable_Settings);

    }
    var ultabs = $('ul.tabs');
    ultabs.tabs('div.panels > div.panel', {effect: 'slide', tabs: 'li'});
});